home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Ghost 1.0 / source / Ghost ƒ / MSG Shell ƒ / msg error.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.2 KB  |  40 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg error.c
  4.  
  5. Purpose:    This module handles fatal errors.
  6.  
  7.  
  8. Ghost -=- a classic word-building challenge
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include "msg error.h"
  29. #include "msg dialogs.h"
  30. #include "msg main.h"
  31.  
  32. void ErrorString(Str255 string1, Str255 string2)
  33. {
  34.     ParamText(string1, string2, "\p", "\p");
  35.     PositionDialog('ALRT', standardAlert);
  36.     Alert(standardAlert, 0L);
  37.     ShutDownEnvironment();
  38.     ExitToShell();
  39. }
  40.